//引入接口
import { getUerInfoList, getUerMinepetsList } from "@/utils/api";
//用户信息
const actions = {
  async getUserInfo({ commit }, playload) {
    const res = await getUerInfoList(playload);
    commit("updateUserInfo", { data: res.result });
  },
  //我的宠物
  async getUerMinepets({ commit }, playload) {
    const res = await getUerMinepetsList(playload);
    commit("updataMypet", { data: res.result });
  },
};

export default actions;
